<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>下拉列表</title>
	</head>
	<body>
		<script>
			document.write("<select>")
			var i=1900;
			while(i<=2017){
				document.write("<option>"+i+"</option>");
				i++;
			}
			document.write("</select>")
		</script>
	</body>
</html>
